package ycl.important.service.impl.region;

import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Service;
import ycl.important.common.base.service.impl.BaseRegionServiceImpl;
import ycl.important.entity.region.Province;
import ycl.important.mapper.region.ProvinceMapper;
import ycl.important.service.region.ProvinceService;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 省份设置 服务实现类
 * </p>
 *
 * @author YCL
 * @since 2021-06-05
 */
@Service("provinceService")
@Lazy
public class ProvinceServiceImpl
		extends BaseRegionServiceImpl<ProvinceMapper, Province>
		implements ProvinceService {

	@Resource
	private ProvinceMapper provinceMapper;

	@Override
	public List<Province> getAll() {
		return provinceMapper.selectList(null);
	}
}
